<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName()
			+ ":" + request.getServerPort() + request.getContextPath();
%>
<jsp:include page="/WEB-INF/page/auth/_header.jsp"></jsp:include>
<body>
	<jsp:include page="/WEB-INF/page/auth/header.jsp"></jsp:include>
	<div id="middle">
		<jsp:include page="/WEB-INF/page/auth/menu.jsp"></jsp:include>
		<div id="right">
		    <jsp:include page="/WEB-INF/page/auth/localinfo.jsp" />
			<div class="col-md-12" id="content_div">
				<div class="easyui-layout" style="width:100%;height:90%;">
	                <div data-options="region:'west',title:'位置',iconCls:'icon-ok'" 
	                  style="width:20%;">
	                  <ul id="dataTypeAllMenu"></ul>
	                </div>
	                <div data-options="region:'center'">
	                    <table id="dataGrid" class="easyui-datagrid"></table>
	                    <%--主界面工具栏--%>
	                    <div id="toolbar">
	                        <a href="javascript:void(0)" class="easyui-linkbutton"  plain="true" onclick="addImgGroup()"><i class="fa fa-plus"></i> 新增</a>
	                        <a href="javascript:void(0)" class="easyui-linkbutton"  plain="true" onclick="upload()"><i class="fa fa-upload"></i> 导入</a>
	                    </div>
	                </div>
	            </div>
			</div>
		</div>
	</div>
	
	<%--新增管理类别对话框--%>
	<div id="addImgGroup" style="display: none;height: 'auto';">
	    <div class="col-md-12 p10">
   			<form id="addImgGroupForm" novalidate="novalidate">
				<input type="hidden" id="id" name="id">
				<input type="hidden" id="dictDataKey" name="dictDataKey">
				<div class="form-group col-md-12">
					<label for="name">模板内容</label>								
					<textarea name="templateContent" id="templateContent" class="form-control" style="height: 100px;"></textarea>
				</div>
				
				<div class="form-group col-md-12">
					<label for="addr">是否启用</label>								
                    <select name="isValid" id="isValid" class="form-control" style="width: 200px;">
                        <option value="1" selected>启用</option>
                        <option value="0">禁用</option>
                    </select>
				</div>
			</form>
		</div>
	    <div class="text-center pd10">
	        <a href="javascript:void(0)" class="btn btn-success" onclick="commitImgGroup()"  plain="true">保存</a>
	    </div>
	</div>
	
	<div id="uploadBox" style="display: none;height: 'auto';">
	    <div class="col-md-12 p10">
   			<form id="uploadForm" novalidate="novalidate" enctype="multipart/form-data" method="post">
				<input type="hidden" id="dictDataKey" name="dictDataKey">
				<div class="form-group col-md-12">
					<p class="text-left">
				  		<span class="btn btn-success fileinput-button" onclick="downloadTemplate('评价模板.xls')">
		                    <i class="fa fa-cloud"></i>
		                    <span>模版下载</span>
		                </span>
				  	</p>
				</div>
				<div class="form-group col-md-12">
					<label for="name">文件</label>								
					<input class="easyui-filebox form-control" id="files" name="files" style="width:250px;">
				</div>
			</form>
		</div>
	    <div class="text-center pd10">
	        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="uploadCommit()" style="width: 200px;">上传</a>
	    </div>
	</div>
	
	<jsp:include page="/WEB-INF/page/auth/_footer.jsp"/>
	<script type="text/javascript" src="<%=basePath %>/js/sys/commentTemplate.js"></script>
</body>
</html>